<template>
  <section class="validate">
    <p class="title">上传身份证</p>
    <div class="upload-box">
      <div class="front">
        上传正面
      </div>
      <div class="back">
        上传反面
      </div>
    </div>
    <div class="btn-box">
      <x-button :gradients="buttonColor" @click.native="uploadImg">上传</x-button>
    </div>
  </section>
</template>

<script>
  import {XInput, Group, XButton} from 'vux'

  export default {
    name: 'editNickName',
    components: {
      XInput,
      Group,
      XButton
    },
    data () {
      return {
        buttonColor: ['#1D62F0', '#19D5FD']
      }
    },
    methods: {
      uploadImg () {
        this.$router.push({path: '/personal'})
      }
    }
  }
</script>

<style lang="less" scoped>
  .validate {
    height: 100%;
    background-color: #fff;
    .title {
      padding: 15px;
    }
    .upload-box {
      padding: 15px;
      .front {
        background-color: #f2f2f2;
        text-align: center;
        height: 150px;
        line-height: 150px;
        margin-bottom: 10px;
      }
      .back {
        background-color: #f2f2f2;
        text-align: center;
        height: 150px;
        line-height: 150px;
      }
    }
    .btn-box {
      position: fixed;
      bottom: 0;
      width: 100%;
      padding: 15px;
      box-sizing: border-box;
    }
  }
</style>
